import Vue from 'vue'
import App from './App.vue'
import router from './router/index';
import axios from './utils/service'
import store from './store/index'
import { AddressList,SubmitBar,Checkbox, CheckboxGroup, SwipeCell, Stepper, Sticky, Card, DropdownMenu, DropdownItem, CellGroup, Toast, Dialog, Form, Popover, Field, Popup, Cascader, Tag, GoodsAction, GoodsActionIcon, GoodsActionButton, Button, Divider, Empty, ActionSheet, Grid, GridItem, Image as VanImage, Icon, TreeSelect, NavBar, Swipe, SwipeItem, Search, CountDown, List, PullRefresh, Cell, Tabbar, TabbarItem } from 'vant';

Vue.use(AddressList);
Vue.use(SubmitBar);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(SwipeCell);
Vue.use(Stepper);
Vue.use(Sticky);
Vue.use(Card);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(CellGroup);
Vue.use(Toast);
Vue.use(Dialog);
Vue.use(Form);
Vue.use(Field);
Vue.use(Popup);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);
Vue.use(CountDown);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Cell);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(TreeSelect);
Vue.use(Icon);
Vue.use(VanImage);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(ActionSheet);
Vue.use(Empty);
Vue.use(Divider);
Vue.use(Button);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Tag);
Vue.use(Cascader);
Vue.use(Popover);

Vue.prototype.$http = axios
//关闭vue在console中的默认提示
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,  //植入根属性，在组件里就可以使用 this.$router
  store
}).$mount('#app')
